feat(garm): add get-credentials action#254
Conversation
cbartz
left a comment
There was a problem hiding this comment.
LGMT. This was not planned, but seems indeed like a useful feature.
There was a problem hiding this comment.
Pull request overview
Adds a get-credentials Juju action to the garm charm to expose the admin credentials stored in the garm-admin-credentials Juju secret, along with unit/integration test coverage and a new how-to guide documenting usage.
Changes:
- Add
get-credentialsaction wiring in the charm and declare it incharmcraft.yaml. - Add unit + integration tests for the action’s success/failure behavior.
- Add a new how-to guide and link it from the docs how-to index; update
.gitignoreentries.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
charms/garm/src/charm.py |
Observes and implements the get-credentials action handler that returns admin secret content. |
charms/garm/charmcraft.yaml |
Declares the get-credentials action. |
charms/garm/tests/unit/test_charm.py |
Adds unit tests covering action success and failure paths. |
charms/tests/integration/test_garm.py |
Adds an integration test that runs the action and validates returned fields. |
docs/how-to/retrieve-garm-credentials.md |
Adds a how-to guide describing how to run the action and interpret output. |
docs/how-to/index.rst |
Adds the new how-to page to the toctree. |
.gitignore |
Fixes .vscode/ ignore entry and adds .worktrees/. |
Head branch was pushed to by a user without write access
…n charmcraft.yaml
Co-authored-by: Erin Conley <erin.conley@canonical.com>
Co-authored-by: Erin Conley <erin.conley@canonical.com>
yhaliaw
left a comment
There was a problem hiding this comment.
Posting three minor findings from a code review pass — all cosmetic/convention issues, none blocking.
Co-authored-by: Andrew Liaw <andrew.liaw@canonical.com>
Co-authored-by: Andrew Liaw <andrew.liaw@canonical.com>
|
Hi @yhaliaw, I resolved the conflicts but there seems to be some formatting done on the test files, can you check to see if they are normal? |
Summary
get-credentialsJuju action to the GARM charm, exposing the admin credentials stored in thegarm-admin-credentialsJuju secret to the operatorUsage